<template>
	<view :class="state=='order'?'':'package'">
		<view class="parBut">
			<view>单号</view>
			<view class="center">
				<text @click="copyText(payFor.order_sn)">复制</text>
				<text>{{payFor.order_sn}}</text>
			</view>
		</view>
		<view class="parFor" style="padding: 0px;margin-top: 10rpx;">
			<view>时间</view>
			<view>
				<text></text>
				<text style="font-size: 28rpx">{{payFor.createtime}}</text>
			</view>
		</view>
		<view class="parFor" v-if="state=='team'" style="padding: 0px;margin-top: 10rpx;">
			<view>团惠包名称</view>
			<view>
				<text></text>
				<text style="font-size: 28rpx">{{payFor.title}}</text>
			</view>
		</view>
	</view>
</template>

<script setup lang="ts">
	import { copyText } from '@/utils/copyText';
	const props = defineProps({
	  state:{ type: String },
	  payFor:{ type: Object },
	});
</script>

<style scoped lang="less">
	@import url('../groupBenefits/less/pay.less');
</style>